Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Added Controller Methods for making DockerImage and Downloading Files #25

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

kunxl-gg
Copy link
Collaborator

  • Wrote method for making DockerImage
  • Wrote method for Downloading files

Signed-off-by: kunxl-gg <tiwari.25@iitj.ac.in>
Signed-off-by: kunxl-gg <tiwari.25@iitj.ac.in>
Signed-off-by: kunxl-gg <tiwari.25@iitj.ac.in>
Signed-off-by: kunxl-gg <tiwari.25@iitj.ac.in>
Signed-off-by: kunxl-gg <tiwari.25@iitj.ac.in>
Signed-off-by: kunxl-gg <tiwari.25@iitj.ac.in>
Signed-off-by: kunxl-gg <tiwari.25@iitj.ac.in>
Signed-off-by: kunxl-gg <tiwari.25@iitj.ac.in>
Signed-off-by: kunxl-gg <tiwari.25@iitj.ac.in>
Signed-off-by: kunxl-gg <tiwari.25@iitj.ac.in>
Signed-off-by: kunxl-gg <tiwari.25@iitj.ac.in>
@TarunTomar122 TarunTomar122 requested review from rohansingh9001 and TarunTomar122 and removed request for rohansingh9001 October 20, 2023 03:05
@TarunTomar122 TarunTomar122 added the enhancement New feature or request label Oct 20, 2023
}

// Build an image from a Dockerfile in the current directory
buildcontext, err := os.Open("./model.tar")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wasn't the files zip?

Copy link
Collaborator Author

@kunxl-gg kunxl-gg Oct 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to unzip and add the Dockerfile inside. I just made a tar after adding the Dockerfile.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where are we adding the docker image and getting the tar file?

@@ -2,32 +2,48 @@ module github.com/LainForge/Neura-Launch-Dashboard/builder

go 1.21
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When did this happen

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤷

return nil

}


func downloadFilesController(context *gin.Context) {
Copy link
Collaborator

@TarunTomar122 TarunTomar122 Oct 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we have the downloadFilesController ?

Comment on lines +44 to +46
Bucket: aws.String(config.AWSS3Bucket),
Key: aws.String("test.txt"),
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

im curious abt how this works... why "test.txt" ?

Comment on lines 14 to -15
r.GET("/downloadFiles", nil)
r.GET("/buildImage", nil)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's this for ? r.GET("/downloadFiles", nil)

}

// Build an image from a Dockerfile in the current directory
buildcontext, err := os.Open("./model.tar")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where are we adding the docker image and getting the tar file?

Comment on lines 17 to 18
// Starting the server
r.Run(":6969")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if u ever change the port here then make the necessary updates in dev, prod docker files and the dev, prod compose files. right now the docker-compose.yaml and builder.Dockerfile still exposes 5000. update that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants